/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cx1.dao.api;

import java.util.List;
import org.cx1.model.User;

/**
 *
 * @author tina
 */
public interface IUserDao {
    
    public List<User> getAll();
    
    public User getById(String id);
    
    public User getByEmail(String email);
    
    public String add(User user);
    
    public int update(User user);
    
    public int deleteById(String id);
    
    public boolean addPhoto(String userId, String photoId);   
       
    public int deletePhoto(String userId, String photoId);
    
    public String authenticateUser(String email, String password);
    
    public boolean isEmailExisting(String email);
    
}
